from django.db import models

# Create your models here.

class Post(models.Model):
	title = models.CharField(max_length=200)
	pub_date = models.DateTimeField('date published')
	body = models.TextField()
	category = models.ForeignKey('Category')

	def __unicode__(self):
		return self.title


class Category(models.Model):
	name = models.CharField(max_length=15)

	def __unicode__(self):
		return self.name
